package org.bt.auth.config;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.bt.common.config.swagger.SwaggerBaseConfig;
import org.bt.common.constant.CommonConstant;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author zwj
 */
@Configuration
@EnableKnife4j
@EnableSwagger2
@Import(BeanValidatorPluginsConfiguration.class)
public class SwaggerConfig extends SwaggerBaseConfig {

    @Bean
    public Docket groupV1() {
        return configureVersion(CommonConstant.ApiVersion.V1);
    }
}
